package test.test6_18;

import java.util.Scanner;

public class Demo3 {
//键盘输入某个学生的三门学科（数学，语文，英语）成绩，然后分别求出三科成绩的平均分，
// 最低分，最高分，三科的总分。
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int math = sc.nextInt();
        int chinese = sc.nextInt();
        int english = sc.nextInt();
        double averageScore = (math + chinese + english) / 3.0;
        System.out.println("平均分 = " + averageScore);
        int temp1 = (math > chinese) ? math : chinese;
        int maxScore = (temp1 > english) ? temp1 : english;
        System.out.println("最高分：" + maxScore);

        int temp2 = (math < chinese) ? math : chinese;
        int minScore = (temp2 < english) ? temp2 : english;
        System.out.println("最低分：" + minScore);
    }


}
